package com.sztz.constants;

/**
 * 公用常量类
 * @author yzy
 * @date 2022/4/7 16:19
 */
public class CommonConstants {
    /**
     * Excel文件基础路径
     */
    public static final String BASE_EXCEL_PATH="D:\\wx";
    /**
     * excel2003扩展名
     */
    public static final String EXCEL03_EXTENSION = ".xls";
    /**
     * excel2007扩展名
     */
    public static final String EXCEL07_EXTENSION = ".xlsx";

    /**
     * 0-9,A-Z的字符数组
     */
    public static final String[] SHUFFLE_CHAR_ARRAY = new String[]{"0", "1", "2", "3", "4", "5", "6", "7",
            "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
            "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
            "W", "X", "Y", "Z"};
    /**
     * 自用的数据库名
     */
    public static final String MY_DB_NAME ="TZ_TEST";

    /**
     * 日志追踪
     */
    public static final String TRACE_ID = "TRACE_ID";
    /**
     * 符点数的单元格样式key
     */
    public static final String CELL_STYLE_KEY_DOUBLE = "Double";
    /**
     * 整数的单元格样式key
     */
    public static final String CELL_STYLE_KEY_INTEGER = "Integer";

    /**
     * 请求头中的token
     */
    public static final String TOKEN_HEADER="Authorization";
    /**
     * SpringSecurity权限的前缀
     */
    public static final String ROLE_PREFIX="ROLE_";
    /**
     * 盐值
     */
    public static final String JWT_BASE64_SECRET= "JoyYzy@2023";
    /**
     * 过期时间 24小时
     */
    public static final long  JWT_TOKEN_EXPIRE_SECONDS=86400*1000;
}
